<?php
include_once 'link.php';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>友情链接管理</title>
<link rel="stylesheet" type="text/css" href="../skin/css/base.css">
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
 
<form name="form1 ">

<table width="98%" border="0" cellpadding="2" cellspacing="1"
	bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
	<tr bgcolor="#E7E7E7">
		<td height="24"   colspan="5" background="../skin/images/tbg.gif">&nbsp;友情链接列表&nbsp;</td>
		<td height="24" align="center"   background="../skin/images/tbg.gif"> <a href="linkAdd.php">新增分类</a></td>
	</tr>
	<tr align="center" bgcolor="#FAFAF1" height="22">
		<td width="6%">ID</td>
		<td width="18%">链接名称</td>
		<td width="18%">链接地址</td>
		<td width="18%">链接方法</td>
		<td width="18%">链接图片</td>
		<td width="10%">操作</td>
	</tr>
	<?php
	$list=list_link();
	if($list!=false){
		foreach ($list as  $catItem){
			?>

	<tr align='center' bgcolor="#FFFFFF"
		onMouseMove="javascript:this.bgColor='#FCFDEE';"
		onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
		<td><?=$catItem->id ?></td>

		<td align="left"><?=$catItem->link_name ?></td>
		<td align="left"><?=$catItem->link_url ?></td>
		<td align="left"><?=$catItem->link_method ?></td>
		<td align="left"><?=$catItem->link_picture ?></td>

		<td><a href="linkEdit.php?id=<?=$catItem->id ?>">编辑</a> | <a href="linkDel.php?id=<?=$catItem->id ?>">删除</a></td>
	</tr>

	<?php
		}
	}
	?>

</table>

</form>

</body>
</html>
